/**
 *
 * Copyright 2012 TeleNav, Inc. All rights reserved.
 * HintRequest.java
 *
 */
package com.telenav.snowsweeper.net;

import com.telenav.snowsweeper.UrlsOfServer;
import com.telenav.snowsweeper.data.Route;

/**
 *@author hhzhu
 *@date 2012-12-7
 */
public class HintRequest extends AbstractRequest
{
    private int level;
    private int beginHintIndex;
    private int endHintIndex;
    private Route route;
    
    public HintRequest(ICallBack caller, int level, int begin, int end, Route route)
    {
        super(caller);
        this.level = level;
        this.beginHintIndex = begin;
        this.endHintIndex = end;
        this.route = route;
    }
  
    public String getRequestUrl()
    {
        return UrlsOfServer.getInsttance().getURLByType(UrlsOfServer.TYPE_CONFIG_HINT) + "?level=" + level 
        + "&beginHintIndex=" + beginHintIndex + "&endHintIndex=" + endHintIndex + (route == null?"":("&route=" + route.getRequestParamers()));
    }

}
